#include "stdafx.h"
#include "Product.h"

CProduct::CProduct()
{
}
CProduct::~CProduct()
{

}
void CProduct::setCode(const CString &sCode)
{
	m_sCode = sCode;
}
CString CProduct::getCode()const 
{
	return m_sCode;
}
void CProduct::setCodeProduct(const CString &sCodeProduct)
{
	m_sCodeProduct = sCodeProduct;
}
CString CProduct::getCodeProduct()const 
{
	return m_sCodeProduct;
}

void CProduct::setCodeStore(const CString &sCodeStore)
{
	m_sCodeStore = sCodeStore;
}
CString CProduct::getCodeStore()const 
{
	return m_sCodeStore;
}


void CProduct::setPriceWholesale(const CString &sPrice)
{
	m_sPriceWholesale = sPrice;
}
CString CProduct::getPriceWholesale()const
{
	return m_sPriceWholesale;
}

void CProduct::setPriceSell(const CString &sPrice)
{
	m_sPriceSell = sPrice;
}
CString CProduct::getPriceSell()const
{
	return m_sPriceSell;
}

void CProduct::setPriceInput(const CString &sInput)
{
	m_sPriceInput = sInput;
}
CString CProduct::getPriceInput()const
{
	return m_sPriceInput;
}

void CProduct::setLabel(const CString &sLable)
{
	m_sLable = sLable;
}
CString CProduct::getLable()const
{
	return m_sLable;
}



void CProduct::bought()
{

}
void CProduct::warranty()
{

}
bool CProduct::pushToDB()
{ 
	return true;
}
bool CProduct::updateDB()
{ 
	return true;
}
bool CProduct::removeOutDB(){ return true;};


 void CProduct::copy(const CProduct* pProduct)
 {
	 if (pProduct)
	 {
		 m_sCode = pProduct->getCode();
		 m_sCodeProduct = pProduct->getCodeProduct();
		 m_sCodeStore = pProduct->getCodeStore();
		 m_sPriceWholesale = pProduct->getPriceWholesale();
		 m_sPriceSell = pProduct->getPriceSell();
		 m_sPriceInput = pProduct->getPriceInput();
		 m_sLable = pProduct->getLable();
	 }
 }
 CProduct* CProduct::clone()
 {
	 return NULL;
 }